Portable reflection for C++ with Mirror
نویسنده
چکیده
Reflection and reflective programming can be used in a broad range of tasks like implementation of serialization operations, remote procedure calls, scripting, automated user interface generation, implementation of several software design patterns, etc. C++ as one of the most prevalent programming languages however, for various reasons, lacks a standardized reflection facility. In this paper we present Mirror a portable library adding reflection to C++ with a command-line utility automating its usage. This library supports functional style static compile-time reflection and metaprogramming and also provides two different object-oriented run-time polymorphic layers for dynamic reflection.
منابع مشابه
Birefringence of interferential mirrors at normal incidence Experimental and computational study
In this paper we present a review of the existing data on interferential mirror birefringence. We also report new measurements of two sets of mirrors that confirm that mirror phase retardation per reflection decreases when mirror reflectivity increases. We finally developed a computational code to calculate the expected phase retardation per reflection as a function of the total number of layer...
متن کاملMIFT: A Mirror Reflection Invariant Feature Descriptor
In this paper, we present a mirror reflection invariant descriptor which is inspired from SIFT. While preserving tolerance to scale, rotation and even affine transformation, the proposed descriptor, MIFT, is also invariant to mirror reflection. We analyze the structure of MIFT and show how MIFT outperforms SIFT in the context of mirror reflection while performs as well as SIFT when there is no ...
متن کاملEffect of Mirror Therapy on Upper Limb Function: A Single Subject Study
Objectives: Mirror therapy is a unique treatment with a touch of modality that is purported to improve the motor function of the affected limb in individuals with hemiplegia. Previous studies have focused on the neuro-physiological factors underlying the mechanism of the clinical effect of this technique. The present study aims to understand the mechanism using the rehabilitation method and neu...
متن کاملSpecular reflection of matter waves from a rough mirror.
We present a high resolution study of the specularity of the atomic reflection from an evanescent wave mirror using velocity selective Raman transitions. We observed a double structure in the velocity distribution after reflection: a peak consistent with specular reflection and a diffuse reflection pedestal whose contribution decreases rapidly with increasing detuning. The diffuse reflection is...
متن کاملForward Mapped Planar Mirror Reflections
This paper presents a new technique, which we call depth-preserving reflection mapping, to render mirror-like reflections on planar surfaces in constant time. It is a hybrid solution which combines geometry-based rendering and imagebased rendering into a two-pass mirror reflection rendering approach. The technique extends the traditional reflection mapping to preserve depth per texel and uses f...
متن کامل